import type { AddressItem } from '@/types/address'
import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useAddressStore = defineStore('address', () => {
  const seletedAddress = ref<AddressItem>()
  const changeSeletedAddress = (item: AddressItem) => {
    seletedAddress.value = item
  }
  return {
    seletedAddress,
    changeSeletedAddress,
  }
})
